<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html lang="zh">
<head>
    <title>${requestScope.course.cname}二维码|河海大学实践课程考勤系统</title>
    <jsp:include page="head.jsp"/>
    <script type="text/javascript" src="${pageContext.request.contextPath}/js/qrcode.min.js"></script>
</head>
<body>
<div class="container">
    <div class="row">
        <div class="col-sm-offset-3 col-sm-6">
            <div id="qrcode" class="center-block" style="width: 397px;"></div>
            <script>
                new QRCode(document.getElementById("qrcode"), {
                    width: 397,
                    height: 397
                }).makeCode("${pageContext.request.scheme}://${pageContext.request.serverName}:${pageContext.request.serverPort}${pageContext.request.contextPath}/student/queryTaskServlet?cid=${requestScope.course.cid}");
            </script>
            <h1 class="text-center">${requestScope.course.cname}</h1>
            <div class="text-center">
                <a class="btn btn-default hidden-print"
                   href="${pageContext.request.contextPath}/teacher/course?cid=${requestScope.course.cid}">返回课程</a>
                <button class="btn btn-default hidden-print" onclick="window.print()">打印</button>
            </div>
        </div>
    </div>
    <jsp:include page="footer.jsp"/>
</div>
</body>
</html>
